package com.shigen.demo.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum FlagEnum {
    YES(0, "有效"),
    NO(1, "无效");

    // @EnumValue
    // 将注解标示的值存储到数据库中
    private final Integer code;
    private final String msg;

}
